package kr.hkit.androidcomplete01.chapter07;

import kr.hkit.androidcomplete01.R;
import kr.hkit.androidcomplete01.chapter06.CodeLayout;
import kr.hkit.androidcomplete01.chapter06.InflationEx;
import kr.hkit.androidcomplete01.chapter06.InflationViewEx;
import kr.hkit.androidcomplete01.chapter06.InflationViewInflateEx;
import kr.hkit.androidcomplete01.chapter06.LayoutParameter2;
import kr.hkit.androidcomplete01.chapter06.NewMessageInflate;
import kr.hkit.androidcomplete01.chapter06.SetParameter;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch07MainActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch07_main);
	}

	public void mOnClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.ch07_btn01:
			intent = new Intent(this, CustomView.class);
			break;
		case R.id.ch07_btn02:
			intent = new Intent(this, Primitive1.class);
			break;
		case R.id.ch07_btn03:
			intent = new Intent(this, Primitive2.class);
			break;
		case R.id.ch07_btn04:
			intent = new Intent(this, AntiAlias.class);
			break;
		case R.id.ch07_btn05:
			intent = new Intent(this, Stroke.class);
			break;
		case R.id.ch07_btn06:
			intent = new Intent(this, NewPaint.class);
			break;
		case R.id.ch07_btn07:
			intent = new Intent(this, DrawBitmap.class);
			break;
		case R.id.ch07_btn08:
			intent = new Intent(this, OffScreen.class);
			break;
		case R.id.ch07_btn09:
			intent = new Intent(this, ShapeDrawableEx.class);
			break;
		case R.id.ch07_btn10:
			intent = new Intent(this, ToastTest.class);
			break;
		}
		startActivity(intent);
	}
}
